package com.piesat.quake.business.device.model;

import lombok.Data;

/**
 * 设备状态
 *
 * @author Gersy
 * @date 2023/3/15
 * @since 1.0
 */
@Data
public class DeviceState {
    public static final byte ON = 1;
    public static final byte OFF = 0;
    private String id;
    private byte state;
    private float temperature;
    private float dataTime;

    public DeviceState() {
    }

    public DeviceState(String id, byte state) {
        this.id = id;
        this.state = state;
    }

    public DeviceState(String id, byte state, float temperature, float dataTime) {
        this.id = id;
        this.state = state;
        this.temperature = temperature;
        this.dataTime = dataTime;
    }
}
